<template>
<div>标题：
<el-input v-model="tableData.title"></el-input>
<div>内容：</div>
<div v-html="tableData.content"></div>
</div>
</template>
<script>
 export default({
  data(){
    
        return {
        ruleForm2: {
        id: "",
        pic: "",
        yzm:"",
        token:''
        
      },
      tableData:{}
        }
    },
    methods:{
       getlist(){
         console.log(localStorage.getItem("mytoken"))
         this.$axios({
           methods:"get",
           url:'/index.php/admin/Index/introducelist',
           params:{
             token:localStorage.getItem("mytoken")
           },
         }).then(res=>{
           this.tableData = res.data.data.cateView
           console.log(res)
           console.log(localStorage.getItem("mytoken"))
         }).catch(err => { //请求失败就会捕获报错信息
                 //err.response可拿到服务器返回的报错数据   
                console.log(err)    
           })
       }
       
    },

    
     mounted(){
       this.getlist()
     } 
})




</script>
